package com.hangim.hangimsia.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.hangimsia.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 词库
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-20
 */
@TableName("sys_vocabulary")
public class SysVocabulary extends IdEntity {

    /**
     * 首字
     */
    private String key;
    /**
     * 关键字Id
     */
    @TableField("key_id")
    private Long keyId;
    /**
     * 简体
     */
    private String simple;
    /**
     * 繁体
     */
    private String complex;
    /**
     * 简述
     */
    private String sketch;
    /**
     * 说明
     */
    private String description;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 修改人
     */
    @TableField("updated_by")
    private Long updatedBy;
    /**
     * 删除人
     */
    @TableField("deleted_at")
    private Date deletedAt;
    /**
     * 删除时间
     */
    @TableField("deleted_by")
    private Long deletedBy;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getKeyId() {
        return keyId;
    }

    public void setKeyId(Long keyId) {
        this.keyId = keyId;
    }

    public String getSimple() {
        return simple;
    }

    public void setSimple(String simple) {
        this.simple = simple;
    }

    public String getComplex() {
        return complex;
    }

    public void setComplex(String complex) {
        this.complex = complex;
    }

    public String getSketch() {
        return sketch;
    }

    public void setSketch(String sketch) {
        this.sketch = sketch;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Long getDeletedBy() {
        return deletedBy;
    }

    public void setDeletedBy(Long deletedBy) {
        this.deletedBy = deletedBy;
    }

    @Override
    public String toString() {
        return "SysVocabulary{" +
                ", id=" + id +
                ", key=" + key +
                ", keyId=" + keyId +
                ", simple=" + simple +
                ", complex=" + complex +
                ", sketch=" + sketch +
                ", description=" + description +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                ", deletedAt=" + deletedAt +
                ", deletedBy=" + deletedBy +
                "}";
    }
}
